/**
 * @company : 版权所属 四川北星惯牌科技有限公司
 * @contact : 刘经理 19326416371
 **/
import request from '@/utils/request.js';
const assistant = {
	apply: (data) => { //申请成为助理
		return request('/assistant/apply', 'post', data, true)
	},
	getApplyStatus: (data) => { //申请成为助理状态
		return request('/assistant/applyInfo', 'post', data, true)
	},
	getAssistantInfo: (data) => { //助教信息
		return request('/assistant/assistantInfo', 'post', data, true)
	},
	setAssistantSwitch: (data) => { //设置助教开关
		return request('/assistant/orderSwitch', 'post', data, true)
	},
	editAssistantInfo: (data) => { //编辑助教信息
		return request('/assistant/editAssistantInfo', 'post', data, true)
	},
	getPhotoWall: (data) => { //获取照片墙
		return request('/assistant/assistantImage', 'post', data, true)
	},
	addPhotoWall: (data) => { //添加照片墙
		return request('/assistant/addAssistantImage', 'post', data, true)
	},
	delPhotoWall: (data) => { //删除照片墙
		return request('/assistant/deleteAssistantImage', 'post', data, true)
	},
	getTimer: (data) => { //获取时间
		return request('/assistant/timeList', 'post', data, true)
	},
	setTimer: (data) => { //添加时间
		return request('/assistant/setTime', 'post', data, true)
	},
	delTime: (data) => { //删除时间
		return request('/assistant/deleteTime', 'post', data, true)
	},
	editTime: (data) => { //编辑时间
		return request('/assistant/editTime', 'post', data, true)
	},
	/*
	 * status 1服务中 2可服务
	 * lat
	 * lng
	 * page
	 * recommend 推荐
	 */
	getUseAssistant: (data) => { //获取可用助教列表
		return request('/assistant/getAssistantList', 'post', data, true)
	},
	getOrderList: (data) => { //获取助教订单列表
		return request('/assistant/getOrderList', 'post', data, true)
	},
	confimOrder: (data) => { //接受订单
		return request('/assistant/acceptOrder', 'post', data, true)
	},
	refundOrder: (data) => { //退订单
		return request('/assistant/refundOrder', 'post', data, true)
	},
	startOrder: (data) => { //开始订单
		return request('/assistant/setOrderStart', 'post', data, true)
	},
	endOrder: (data) => { //结束订单
		return request('/assistant/setOrderEnd', 'post', data, true)
	},
	getAccount: (data) => { //获取账户金额
		return request('/assistant/getAccount', 'post', data, true)
	},
	getMoneyLog: (data) => { //获取余额日志
		return request('/assistant/getMoneyLog', 'post', data, true)
	},
	getWithdrawList: (data) => { //获取提现日志
		return request('/assistant/getWithdrawList', 'post', data, true)
	},
	withdraw: (data) => { //提现
		return request('/assistant/withdrawMoney', 'post', data, true)
	},
	checkAssistant: (data) => { //查看组队助教状态
		return request('/assistant/checkAssistant', 'post', data, true)
	},
	getImageById:(data)=>{//根据id获取照片墙 assistantId page
		return request('/assistant/detailImage', 'post', data, true)
	}
}
export default assistant;